import { Loading } from 'element-ui';

let loading=undefined;
//开始加载
export const loading_start=(msg)=>{
     loading = Loading.service({
        lock: true,
        text: msg || "请稍后.....",
        spinner: 'el-icon-loading',
        background: 'rgba(0, 0, 0, 0.7)'
    });
}

//结束加载

export const loading_close=()=>{
    if(loading)
        loading.close();

    
   
}

